From: Florian Müllner Date: Sat, 16 Nov 2024 18:10:03 +0000 (+0100) Subject: main: Make notify() details optional again X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~173^2^2~165 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4ebc7113ab1af667f13f60700fb5a04fd7b5fd7a;p=gnome-shell.git main: Make notify() details optional again The parameter used to be optional until commit d54219c0982, but after GObjectifaction `undefined` is no longer interchangeable with `null` here. Restore the old behavior, as it's used by extensions (including one of our own templates). Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8068 Part-of: --- diff --git a/js/ui/main.js b/js/ui/main.js index 25c28b240..73980edb8 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -610,9 +610,9 @@ export function loadTheme() { /** * @param {string} msg A message - * @param {string} details Additional information + * @param {string=} details Additional information */ -export function notify(msg, details) { +export function notify(msg, details = null) { const source = MessageTray.getSystemSource(); const notification = new MessageTray.Notification({ source,